Menu and Toolbar Commands
Previous
Top
Next
Execute any NoteTab menu and toolbar command from a Clip. See also
Keyboard Macros
for related commands.
^!Menu
NameSequence
(added in v4.9)
You can use this command to activate any enabled command from the main program menu. The first menu name in the sequence is the one that appears at the top of the main menu, followed by submenu names (if any), and then the name of the final menu item to activate. You must separate submenu items with a forward slash and leave out any ellipsis. You should put double quotes around a menu name if it contains one or more forward slash characters. The case of characters does not have to be the same as the actual menu commands.
The following example opens the Font dialog box for the active document:
^!MENU Document/Font/Change Font
The example below inserts the date and time from the menu command (notice the use of double quotes):
^!MENU Document/"Insert Date/Time"
^!SetShortcut
Shortcut NameSequence
(added in v4.9)
You can use ^!SetShortcut to temporarily change keyboard shortcuts for any of the main menu items. It takes two parameters, which are separated by a space character. The first parameter represents the shortcut value and the second represents the menu item. The first menu name in the sequence is the one that appears at the top of the main menu, followed by submenu names (if any), and then the name of the final menu item to activate. You must separate submenu items with a forward slash and leave out any ellipsis. You should put double quotes around a menu name if it contains one or more forward slash characters. The case of characters does not have to be the same as the actual menu commands. Note that this command is not available in NoteTab Light.
The two instructions in the following example assign the Ctrl+Shift+F shortcut to the "Change Font" menu command, and Ctrl+T to the "Insert Date/Time" menu command:
^!SetShortcut Ctrl+Shift+F Document/Font/Change Font
^!SetShortcut Ctrl+T Document/"Insert Date/Time"
^!Toolbar
ToolTipText
You can execute any NoteTab command that is available in the toolbar (it doesn't matter if the button is displayed in the toolbar or not). You specify the command you want to execute by using the keyword "
Toolbar
" followed by a space and its tooltip text. The button tooltip text can be seen by placing the mouse cursor over the button. The available commands are also listed in the Clip Assistant. You can check if the command was successfully executed with the
^!IfError
command. An error condition is only triggered if the command failed because the button was disabled.
The following example will activate the "Open Document" command:
^!TOOLBAR Open Document
You can of course create a sequence of instructions within a Clip. The next example will create a new document, paste the content of the Clipboard into it, then activate the Save As dialog box:
^!TOOLBAR New Document
^!TOOLBAR Paste
^!TOOLBAR Save As